package com.gaoy.springdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/user")//类路径
@RestController
public class UserController {
    @RequestMapping("/m1")
    public String m1(){
        return "m1";
    }
    @RequestMapping(value = "/m2",method = RequestMethod.GET)
    public String m2(){
        return "m2";
    }
}
